package de.justphil.tcg.tcgserver.commons.domain.complete;

import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class CDeck {
	
	@XmlElement
	private long id;
	
	@XmlElement
	private String name;
	
	@XmlElement
	private long userId;
	
	@XmlElement
	private long[] cardInstances;
	
	@XmlElement
	private Date created;
	
	@XmlElement
	private Date modified;
	
	
	
	
	public CDeck() {
		// JAXB conformity
	}


	public CDeck(long id, String name, long userId, long[] cardInstances,
			Date created, Date modified) {
		super();
		this.id = id;
		this.name = name;
		this.userId = userId;
		this.cardInstances = cardInstances;
		this.created = created;
		this.modified = modified;
	}


	public long getId() {
		return id;
	}


	public String getName() {
		return name;
	}


	public long getUserId() {
		return userId;
	}


	public long[] getCardInstances() {
		return cardInstances;
	}


	public Date getCreated() {
		return created;
	}


	public Date getModified() {
		return modified;
	}

}
